package com.stylefeng.guns.modular.flagglory.service;

import com.alibaba.fastjson.JSONObject;
import com.stylefeng.guns.common.persistence.model.GloryUser;
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.exception.FrontException;
import com.stylefeng.guns.core.exception.GunsException;
import com.stylefeng.guns.modular.front.dto.AnswerResultDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * lg_用户 服务类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-01-31
 */
public interface IGloryUserService extends IService<GloryUser> {
    //用户注册
    void register(GloryUser user) throws FrontException;

    Map<String, Object> selectGloryUserInfo(String openId);

    Map<String, Object> selectGloryUserInfo(Integer userId);

    //获取前台返回信息
    JSONObject getResult(AnswerResultDto answerResultDto) throws FrontException;

    //根据星星排名获取用户集合
    List<Map<String, Object>> selectUserList(Integer deptId) throws FrontException;

    void authentication(Integer userId,Integer deptId,String code,String realName) throws Exception;
}
